package lesson5.example8;

import java.lang.reflect.Method;

import com.classloading.utils.JavaCompilerUtil;


public class Decompiler {
	
	public static void main(String args[]) throws Exception{
		ClassLoader classLoader = Decompiler.class.getClassLoader();
		Method mainMethod = classLoader.loadClass("org.benf.cfr.reader.Main").getMethod("main",String[].class);

		mainMethod.invoke(null, 
				new Object[] { new String[] { 
				JavaCompilerUtil.path +"bytecode-examples/bytecode-example-5-04/lib/java/lang/String.class",
				"--methodname",
				"split"
				} });
	}
}
